-- GENERATED SPELL FOR [Flameguard] --


function spell0_11667(pUnit, Event) --@Cone of Fire,Self--
pUnit:FullCastSpellOnTarget(19630,pUnit)
pUnit:RegisterEvent('Sorts_11667', 689, 1)
end

function spell1_11667(pUnit, Event) --@Melt Armor,Self--
pUnit:FullCastSpellOnTarget(19631,pUnit)
pUnit:RegisterEvent('Sorts_11667', 598, 1)
end

function Sorts_11667(pUnit, Event)
local choix_sorts_11667 = math.random(0, 1)
if choix_sorts_11667 == 0 then
pUnit:RegisterEvent('spell0_11667', 1, 1)
end
if choix_sorts_11667 == 1 then
pUnit:RegisterEvent('spell1_11667', 1, 1)
end
end

function mob11667_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11667', math.random(1500, 3000), 1)
end

function mob11667_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11667_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11667_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11667, 1, 'mob11667_Action')
RegisterUnitEvent(11667, 2, 'mob11667_Leave')
RegisterUnitEvent(11667, 3, 'mob11667_Kill')
RegisterUnitEvent(11667, 4, 'mob11667_Die')
